package com.itrip.maile;

public class RegisterMail {
    public static boolean sendMail(Integer code,String email)throws Exception{
        return MailSender.sendMail(
                "smtp.qq.com",
                "1293784479@qq.com",//发件人邮箱，需先生成授权码
                "opkoezfcydfxjgea",
                "爱旅行",
                "您的验证码：<h1>"+code+"</h1>，您正进行邮箱注册身份验证，打死不告诉别人，有效期5分钟！",
                "html",
                new String[]{email},//收件人邮箱
                new String[]{"C:\\Users\\Administrator.USER-20190709AG\\Desktop\\a.jpg"}

        );

    }
}
